<?php

namespace Cours\QuizzBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Choix
 *
 * @ORM\Table(name="choix")
 * @ORM\Entity
 */
class Choix
{
    /**
     * @var \Cours\QuizzBundle\Entity\Question
     *
     * @ORM\ManyToOne(targetEntity="Cours\QuizzBundle\Entity\Question")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="question_id", referencedColumnName="id")
     * })
     */
    private $questionId;

    /**
     * @var string
     *
     * @ORM\Column(name="libelle", type="string", length=255, nullable=false)
     */
    private $libelle;

    /**
     * @var integer
     *
     * @ORM\Column(name="points", type="integer", nullable=false)
     */
    private $points;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;





    /**
     * Set idquestion
     *
     * @param \Cours\QuizzBundle\Entity\Question $questionId
     * @return Choix
     */
    public function setQuestionId(\Cours\QuizzBundle\Entity\Question $idquestion = null)
    {
        $this->questionId = $idquestion;
    
        return $this;
    }

    /**
     * Get questionId
     *
     * @return \Cours\QuizzBundle\Entity\Question 
     */
    public function getQuestionId()
    {
        return $this->idquestion;
    }

    /**
     * Set libelle
     *
     * @param string $libelle
     * @return Choix
     */
    public function setLibelle($libelle)
    {
        $this->libelle = $libelle;
    
        return $this;
    }

    /**
     * Get libelle
     *
     * @return string 
     */
    public function getLibelle()
    {
        return $this->libelle;
    }

    /**
     * Set points
     *
     * @param integer $points
     * @return Choix
     */
    public function setPoints($points)
    {
        $this->points = $points;
    
        return $this;
    }

    /**
     * Get points
     *
     * @return integer 
     */
    public function getPoints()
    {
        return $this->points;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
}